Skip to content

Add CI (tests + black, secured, .NET 8/10 matrix) for v7.2#33

Merged
poissoncorp merged 2 commits into
ravendb:v7.2from
poissoncorp:add-ci
Jun 24, 2026
Merged

Add CI (tests + black, secured, .NET 8/10 matrix) for v7.2#33
poissoncorp merged 2 commits into
ravendb:v7.2from
poissoncorp:add-ci

Conversation

@poissoncorp

@poissoncorp poissoncorp commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

GitHub Actions workflow running the test suite + a black check on push / PR to v7.2.

CI (.github/workflows/tests.yml) — 3 jobs

OS Python .NET
ubuntu 3.13 10 (forced via fx-version)
ubuntu 3.9 8 (default resolution)
windows 3.13 10 (forced via fx-version)
  • .NET 8 and .NET 10 both exercised. The server targets net8.0, so default resolution covers .NET 8; runners preinstall 8, so .NET 10 is forced via --fx-version (env RAVENDB_TEST_FRAMEWORK_VERSIONtests.pin_framework_version). Verified RavenDB 7.2 runs on .NET 10.
  • pip install -e .black --check . (120 via pyproject.toml) → fetch bundled server (setup.py sdist) → unittest discover.

Secured/HTTPS test

The secured test generates its own self-signed certificate in-process (via the cryptography dependency) with the extensions RavenDB requires (digitalSignature+keyEncipherment, serverAuth+clientAuth EKU, SAN localhost+127.0.0.1). So it always runs — every job including Windows — with no skip, no env vars, no hardcoded cert paths, and no openssl step in CI.

Test fixes / cleanup

  • Removed the hardcoded C:\RavenDB Clients\... developer paths (the secured test is now self-contained).
  • test_runtime_framework_version_matcher.test_match_1 — updated for the current empty/unenforced framework_version default (was stale).
  • test_custom_provider — zip/directory external-server tests made cwd-independent and self-contained.

Verified locally (Python 3.12, fresh venv)

Full suite green on .NET 8 and .NET 10: 9 tests OK each, with the secured test running (not skipped). No RAVEN_LICENSE needed (community edition).

@poissoncorp poissoncorp changed the title Add CI (tests + black) for v7.2 Add CI (tests + black, secured, OS matrix) for v7.2 Jun 24, 2026
@poissoncorp poissoncorp changed the title Add CI (tests + black, secured, OS matrix) for v7.2 Add CI (tests + black, secured, .NET 8/10 matrix) for v7.2 Jun 24, 2026
- Fix stale test_match_1 (framework_version default is now empty/unenforced)
- Make the external-server provider tests cwd-independent and self-contained
- Generate the secured test's certificate in-process (tests/certificates.py)
- Add pin_framework_version helper so CI can pin the server's .NET runtime
- Runs 'unittest discover' + 'black --check' on push/PR to v7.2
- Matrix: Python {3.9,3.13} x OS {ubuntu,windows} x .NET {8 default, 10 forced}
- Fetches the bundled RavenDB server via setup.py sdist; black line-length 120 via pyproject.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant